n = 0
for i in range(1, 5):
    for j in range(1, 5):
        if i != j:
            for k in range(1, 5):
                if k != i and k != j:
                    print(i, j, k)
                    n = n + 1
print("不重复三位数组合个数为:", n)
